package com.os4j.model;

import java.io.Serializable;

public class MaterialCompart implements Serializable {

  private static final long serialVersionUID = -5288277795602243222L;

  private Long materialId;
  private String type;
  private String name;
  
  public MaterialCompart(){}
  
  public Long getMaterialId() {
	return materialId;
  }

  public void setMaterialId(Long materialId) {
	this.materialId = materialId;
  }
  @Override
  public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((materialId == null) ? 0 : materialId.hashCode());
	return result;
  }

  @Override
  public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	MaterialCompart other = (MaterialCompart) obj;
	if (materialId == null) {
		if (other.materialId != null)
			return false;
	} else if (!materialId.equals(other.materialId))
		return false;
	return true;
  }
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }
}